package com.yanyeori.framework.security.filter;

import com.yanyeori.framework.core.model.WebResponse;
import com.yanyeori.framework.security.bo.UserDetail;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@FunctionalInterface
public interface RequestFilter {

    WebResponse<?> handle(HttpServletRequest request, HttpServletResponse response, UserDetail userDetail);

    default int getOrder() {
        return Integer.MAX_VALUE;
    }
}
